<!DOCTYPE html>
<html lang="zh">
    <head></head>
    <body class="hold-transition sidebar-mini">
        <div class="wrapper">
            <nav class="main-header navbar navbar-expand bg-white navbar-light border-bottom"></nav>
            <aside class="main-sidebar sidebar-dark-primary elevation-4"></aside>
            <div class="content-wrapper">
                <div class="content-header">
                    <div class="container-fluid"></div>
                </div>
                <div id="content-panel" class="content">
                    <div class="container-fluid">
                        <div class="card-header">
                            <h3 class="card-title">管理首页</h3>
                        </div>
                        <div class="row" style="margin-top: 40px;border-top:0px;">
                            <div class="col-lg-4 col-6">
                                <div class="small-box bg-info">
                                    <div class="inner">
                                        <h3>新增博客</h3>
                                        <p>记心中所想</p>
                                    </div>
                                    <div class="icon">
                                        <i class="fa fa-pencil-square-o"></i>
                                    </div>
                                    <a href="/admin/editor.html" class="small-box-footer">let's go
                                        <i class="fa fa-arrow-circle-right"></i>
                                    </a>
                                </div>
                            </div>
                            <div class="col-lg-4 col-6">
                                <div class="small-box bg-success">
                                    <div class="inner">
                                        <h3 id="blog-count">65</h3>
                                        <p>总文章数</p>
                                    </div>
                                    <div class="icon">
                                        <i class="fa fa-list-alt"></i>
                                    </div>
                                    <a href="/admin/blogs.html" class="small-box-footer">More info
                                        <i class="fa fa-arrow-circle-right"></i>
                                    </a>
                                </div>
                            </div>
                            <div class="col-lg-4 col-6">
                                <div class="small-box bg-primary">
                                    <div class="inner">
                                        <h3 id="comment-count">65</h3>
                                        <p>收到评论数</p>
                                    </div>
                                    <div class="icon">
                                        <i class="fa fa-comments"></i>
                                    </div>
                                    <a href="/admin/comment.html" class="small-box-footer">More info <i
                                            class="fa fa-arrow-circle-right"></i>
                                    </a>
                                </div>
                            </div>
                            <div class="col-lg-4 col-6">
                                <div class="small-box bg-warning">
                                    <div class="inner">
                                        <h3 id="category-count">65</h3>

                                        <p>分类数量</p>
                                    </div>
                                    <div class="icon">
                                        <i class="fa fa-bookmark"></i>
                                    </div>
                                    <a href="/admin/category.html" class="small-box-footer">More info
                                        <i class="fa fa-arrow-circle-right"></i>
                                    </a>
                                </div>
                            </div>
                            <div class="col-lg-4 col-6">
                                <div class="small-box bg-dark">
                                    <div class="inner">
                                        <h3 id="link-count">65</h3>

                                        <p>友情链接</p>
                                    </div>
                                    <div class="icon">
                                        <i class="fa fa-heart"></i>
                                    </div>
                                    <a href="/admin/link.html" class="small-box-footer">More info
                                        <i class="fa fa-arrow-circle-right"></i>
                                    </a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <footer class="main-footer"></footer>
        </div>
        <script src="/admin/plugins/jquery.min.js"></script>

        <script src="/admin/plugins/js.cookie.min.js"></script>

        <script src="/admin/plugins/jquery-ui.min.js"></script>

        <script src="/admin/plugins/bootstrap/js/bootstrap.bundle.min.js"></script>

        <script src="/admin/plugins/adminlte/adminlte.min.js"></script>

        <script src="/admin/dist/js/base.js"></script>

        <script>
            $(function () {
                // 加载head标签内容
                $("head").load("/admin/templates/head.html");
                $("nav").load("/admin/templates/navigation.html");
                $("aside").load("/admin/templates/sidebar.html", function () {
                    let name = Cookies.get("nickName");
                    $("#userNick").text(name);
                    clearActive();
                    $("#ul-item-1").attr("class", "nav-link active");
                });
                $("footer").load("/admin/templates/footer.html");
                getOverview();
            });
        </script>
    </body>
</html>